<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>新增新闻</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="#(ctx)/static/layui/css/layui.css"
	media="all">
</head>
<body>
	<a class="layui-btn layui-btn-radius layui-btn-normal"
		href="javascript:window.history.go(-1);"><i class="layui-icon">&#xe65c;</i>返回</a>
	<fieldset class="layui-elem-field layui-field-title"
		style="margin-top: 50px;">
		<legend>新闻源</legend>
	</fieldset>

	<form method="POST" action="#(ctx)/admin/news/save" class="layui-form">
		<input type="hidden" name="news.id" value="#(news.id??)" /> <input
			type="hidden" name="act" value="#(act)" />
		<div class="layui-form-item">
			<label class="layui-form-label">新闻源名称</label>
			<div class="layui-input-block">
				<input type="text" name="news.newsname" lay-verify="required"
					placeholder="请输入新闻源名称" autocomplete="off" class="layui-input"
					value="#(news.newsname??)">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">所属地区</label>
			<div class="layui-input-block">
				<select name="news.pcode"> #for(r:provinceList)
					<option value="#(r.id)" #if(r.id==news.pcode??)selected #end>#(r.province)</option>
					#end
				</select>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">案例网址</label>
			<div class="layui-input-block">
				<input type="text" name="news.site" placeholder="请输入案例网址"
					autocomplete="off" class="layui-input" value="#(news.site??)">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">收录类型</label>
			<div class="layui-input-block">
				<select name="news.intype">
					<option value="1" #if(1==news.intype??)selected #end>新闻收录</option>
					<option value="2" #if(2==news.intype??)selected #end>网页收录</option>
				</select>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">价格</label>
			<div class="layui-input-block">
				<input type="text" name="news.vipprice" lay-verify="required|number"
					placeholder="请输入价格" autocomplete="off" class="layui-input"
					value="#(news.vipprice??)">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">发布类型</label>
			<div class="layui-input-block">
				<select name="news.outtype"> #for(r:outtypeList)
					<option value="#(r.id)" #if(r.id==news.outtype??)selected #end>#(r.type)</option>
					#end
				</select>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">备注</label>
			<div class="layui-input-block">
				<input type="text" name="news.remark" placeholder="请输入备注"
					autocomplete="off" class="layui-input" value="#(news.remark??)">
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-input-block">
				<button class="layui-btn layui-btn-normal" lay-submit=""
					lay-filter="formSub">立即提交</button>
			</div>
		</div>
	</form>
</body>

#@js?("layui")
<script>
	layui
			.use(
					[ 'upload', 'form', 'layedit', 'jquery' ],
					function() {
						var form = layui.form, layer = layui.layer, laydate = layui.laydate, $ = layui.jquery, upload = layui.upload;

					});
</script>
</html>